package cn.livingCloud.repository;

import cn.livingCloud.dto.MemberListDto;
import cn.livingCloud.dto.Page;
import cn.livingCloud.entity.user.Member;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by sujiantang on 2015/12/23.
 */
@Repository
public interface MemberMapper {
    void save(Member member);

    Member findMemberByUuid(String uuid);

    Member findMemberByOpenid(String openid);

    void update(Member member);

    List<Member> getList(Page memberListDto);

    List<Member> searchMember(@Param("nickName") String nickName);

    List<Member> findUnBoundMemberList(MemberListDto listDto);

    List<Member> findMemberByEmployeeUuid(String uuid);

    Member findMemberByUuidNotState(String uuid);

    List<Member> findUnBindMemberList(MemberListDto listDto);
}
